﻿using IceDog.EFCore.Models.Blog;
using IceDog.EFCore.Utils;
using Microsoft.EntityFrameworkCore;

namespace IceDog.EFCore.Cmd.CodeFirst.Context
{
    public class DioBlogContext:DbContext
    {
        public DbSet<BlogUser> BlogUsers { get; set; }
        public DbSet<BlogArticle> BlogArticles { get; set; }
        public DbSet<BlogComment> BlogComments { get; set; }
        protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
        {
            //optionsBuilder.UseMySql(ConnectionStringHelper.MySql);
            optionsBuilder.UseSqlite(ConnectionStringHelper.SQLite);
        }
    }
}
